package com.jlcloud.core.holidays.config;

import com.jlcloud.core.holidays.core.HolidaysApi;
import com.jlcloud.core.holidays.impl.HolidaysApiImpl;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.core.io.ResourceLoader;

/**
 * 配置
 *
 * @author By: JlCloud <br>
 * @Package: com.jlcloud <br>
 * @CreateTime: 2024-12-03 21:45 <br>
 * @Copyright: 2021 www.jilianjituan.com Inc. All rights reserved. <br>
 * @Caution 注意：本内容仅限于冀联人力集团内部传阅，禁止外泄以及用于其他的商业目的 <br>
 */
@AutoConfiguration
@EnableConfigurationProperties(HolidaysApiProperties.class)
public class HolidaysApiConfiguration {

	@Bean
	public HolidaysApi holidaysApi(ResourceLoader resourceLoader,
                                   HolidaysApiProperties properties) {
		return new HolidaysApiImpl(resourceLoader, properties);
	}

}
